from flask import Flask

def create_app() -> Flask:
    app = Flask(__name__)
    # 配置
    app.config['TRUSTED_PROXIES'] = ['proxy_ip']
    app.config['JSON_AS_ASCII'] = False
    app.config['JSONIFY_MIMETYPE'] = "application/json;charset=utf-8"

    return app